package com.study.controller.HRcontroller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.study.model.pojo.HRpojo.DeptTab;
import com.study.service.HRservice.DeptService;

@RestController
public class DeptController {

	@Autowired
	DeptService dptService;
	
	@RequestMapping("findDeptAll")
	public List<DeptTab> findAll(){
		return dptService.findAll();
	}
	
}
